let obj = {
  "create_time": "2023-08-03T10:14:09+08:00",
  "stock_name": "5元微信代金券",
  "available_end_time": "2023-08-04T23:59:59+08:00",
  "singleitem": false,
  "description": "测试活动",
  "stock_id": "17824980",
  "card_id": "pX2-vjk9WJLiBT5w4LdPCbnyuNRg",
  "stock_type": "NORMAL",
  "no_cash": true,
  "stock_creator_mchid": "1500626161",
  "stock_use_rule": {
    "max_amount_by_day": 25000,
    "goods_tag": [],
    "combine_use": false,
    "max_amount": 25000,
    "trade_type": [],
    "max_coupons_per_user": 1,
    "fixed_normal_coupon": {
      "coupon_amount": 500,
      "transaction_minimum": 2000
    },
    "max_coupons": 50,
    "coupon_type": "NORMAL"
  },
  "available_begin_time": "2023-08-03T10:15:08+08:00",
  "distributed_coupons": 2,
  "status": "running"
}
function flterObj(obj){
  for (const key in obj) {
    if (typeof key === 'object') {
      key.replace(/\[|]/g,'')
    }
  }
  console.log(obj);
}
flterObj(obj)